package com.xoa.controller.party;


import com.xoa.model.party.CommunityLxdwxxcj;
import com.xoa.service.party.CommunityLxdwxxcjService;
import com.xoa.util.ToJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/CommunityLxdwxxcj")
public class CommunityLxdwxxcjController {

    @Autowired
    private CommunityLxdwxxcjService communityLxdwxxcjService;

    /**
     * 查询
     * @param request
     * @param communityLxdwxxcj
     * @param page
     * @param pageSize
     * @return
     */
    @RequestMapping("/select")
    @ResponseBody
    public ToJson select(HttpServletRequest request, CommunityLxdwxxcj communityLxdwxxcj, Integer page, Integer pageSize, boolean useFlag, String export, HttpServletResponse response){
          return  communityLxdwxxcjService.select(request,communityLxdwxxcj,page,pageSize,useFlag,export,response);
    }


    /**
     * 修改
     * @param request
     * @param communityLxdwxxcj
     * @return
     */
    @RequestMapping("/update")
    @ResponseBody
    public ToJson update(HttpServletRequest request, CommunityLxdwxxcj communityLxdwxxcj){
        return  communityLxdwxxcjService.update(request,communityLxdwxxcj);
    }

    /**
     * 删除
     * @param
     * @param
     * @param
     * @param
     * @return
     */
    @RequestMapping("/delete")
    @ResponseBody
    public ToJson delete(Integer lxdwxxcjId){
        return  communityLxdwxxcjService.delete(lxdwxxcjId);
    }


    /**
     * 添加
     * @param request
     * @param communityLxdwxxcj
     * @param
     * @param
     * @return
     */
    @RequestMapping("/add")
    @ResponseBody
    public ToJson add(HttpServletRequest request, CommunityLxdwxxcj communityLxdwxxcj){
        return  communityLxdwxxcjService.add(request,communityLxdwxxcj);
    }



    @RequestMapping("/shiyuan")
    public  String  shiyuan(){
        return "/app/zhPlatform/shiyuan";
    }

    @RequestMapping("/shiyuan1")
    public  String  shiyuan1(){
        return "/app/zhPlatform/shiyuan1";
    }

    @RequestMapping("/zhuye")
    public  String  shiyua(){
        return "/app/zhPlatform/zhuye";
    }

    @RequestMapping("/newAnquan")
    public  String  anquan(){
        return "/app/zhPlatform/newAnquan";
    }
    @RequestMapping("/newZongzhi")
    public  String  zongzhi(){
        return "/app/zhPlatform/newZongzhi";
    }

    @RequestMapping("/newdangjian")
    public  String  newdangjian(){
        return "/app/zhPlatform/newdangjian";
    }


    @RequestMapping("/newchengjian")
    public  String  newchengjian(){
        return "/app/zhPlatform/newchengjian";
    }


    @RequestMapping("/shiyuanOne")
    public  String  shiyuanOne(){
        return "/app/zhPlatform/shiyuanOne";
    }


}
